package com.shilun.springboot.hello_demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

import com.shilun.springboot.hello_demo.config.DBConfig1;
import com.shilun.springboot.hello_demo.config.DBConfig2;

/**
 * Hello world!
 *
 */
// @ComponentScan(basePackages= {"com.shilun.springboot.hello_demo.controller"})
// @EnableAutoConfiguration

// @EntityScan(basePackages= {"com.shilun.springboot.hello_demo.entity"})
// @EnableJpaRepositories(basePackages=
// {"com.shilun.springboot.hello_demo.dao"})
@EnableConfigurationProperties(value = { DBConfig1.class, DBConfig2.class })
@MapperScan(basePackages = { "com.shilun.springboot.hello_demo.mapper" })
@SpringBootApplication
public class App {
	public static void main(String[] args) {
		System.out.println("Hello World!");
		SpringApplication.run(App.class, args);
	}
}
